package com.example.design.bilibili.builder.pattern;

public class Client {

    public static void main(String[] args) {
        //盖普通的房子
        CommonHourse commonHourse = new CommonHourse();
        HourseDirector hourseDirector = new HourseDirector(commonHourse);
        //完成盖房子，返回（普通）房子
        Hourse hourse = hourseDirector.constructHourse();

        //盖高楼
        HighBuilding highBuilding = new HighBuilding();
        hourseDirector.setHourseBuilder(highBuilding);

        hourseDirector.constructHourse();
    }
}
